$(document).scroll(function(){
	//被卷页面的高度
	var $sHeight = $(document).scrollTop();
	//网页可视高度
	var $kHeight = $(window).height();
	//整个页面的高度
	var $dHeight = $(document).height();
	if($sHeight+$kHeight==$dHeight){
	$.get("index1.json",function(data){
		var html = "";
		var flag = true;
		$.each(data,function(i,o){
			html +=	"<div class=\"h-special-item h-round h-hover js-special-item  item_soldout\">"
						+"<div class=\"main_pro_while h-special-p\" style=\"margin: 0;position: relative;\">"
									+"<i class=\"brand_soldout\">抢光了</i>"
									+"<a href=\"javascript:;\" class=\"h-a h-fill\">"
										+"<img class=\"h-fill lazyload\" data-original=\""+o.img+"\" style=\"display:inline;\">"
									+"</a>"
								+"</div>"
								+"<div class=\"h-special-detail\">"
									+"<div class=\"h-special-title\">"
									+"<div class=\"h-special-time\">距结束<span class=\"h-special-interval\"><span>0天</span><strong>0时</strong><strong>0分</strong><strong>0秒</strong></span></div>"
										+"<img class=\"h-special-flag\" src=\"img/21_100x100.png\">"
										+"<span class=\"h-special-tt wide\">韩国直采杭州保税仓发货</span>"
									+"</div>"
									+"<p class=\"h-special-text\">"
										+"<a href=\"#\" style=\"color: inherit\">"+o.specialText+"</a>"
									+"</p>"
					+"<p class=\"h-special-desc\">"+o.specialDesc+"</p>"
									+"<div class=\"h-special-b\">"
										+"<a href=\"#\" class=\"h-special-btn\">立即抢购</a>"
										+"<div class=\"h-special-price\">￥<span class=\"h-special-num\">"+o.num+"</span>"
											+"<span class=\"h-special-price2\">￥"+o.price+"</span>"
										+"</div>"
									+"</div>"
								+"</div>"
							+"</div>"
		});	
		$("#recommendListCon").html(html);
		$("img").lazyload({
			effect:"fadeIn",
			threshold:20,
			placeholder:"img/TB1fkyVJpXXXXbbXpXX7WcCNVXX-400-400.png"
			});
		});
	}
});